﻿using OpenWaves;
using OpenWaves.EPiServer.Comments.Models.Pages;
using OpenWaves.EPiServer.Comments.Models.Requests;
using OpenWaves.EPiServer.Comments.Models.ValueObjects;

namespace OpenWaves.EPiServer.Comments.Content.DataMappers
{
    [DefaultImplementation(typeof(DefaultCommentDataMapper))]
    public interface ICommentDataMapper
    {
        CommentPage MapCommentToCommentPage(CommentPage targetPage, Comment comment);
        Comment MapCommentPageToComment(Comment targetComment, CommentPage commentPage);

        Comment MapAddCommentRequestToComment(Comment targetComment, AddCommentRequest request);
    }
}
